<template>
  <!-- 灾情勘察统计页 -->
  <div class="Emergency">
    <div class="flex location-wrap">
      <span class="white" style="font-size: 16px;">当前位置：</span>
      <el-breadcrumb separator="/">
        <el-breadcrumb-item :to="{ path: '/EDManagement' }">应急处置</el-breadcrumb-item>
        <el-breadcrumb-item>客户服务</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <div class="Emergency-center">
      <div class="Emergency-dt">
        <!-- <sjMap @typeNames="childData" /> -->

        <!-- 地图 -->
        <mapContent @typeNames="childData" />
      </div>
      <div class="Emergency-tb">
        <SelectOptions :value="responseId" :options="response_options" @change="changeResponse" />
        <div class="Emergency-tb-bt">
          <div class="table-tj">
            <el-row class="table-title" :gutter="20">
              <el-col :span="8">
                <div class="title"></div>
              </el-col>
              <el-col :span="5">
                <div class="title">停运/停电</div>
              </el-col>
              <el-col :span="5">
                <div class="title">复电</div>
              </el-col>
              <el-col :span="5">
                <div class="title">恢复率</div>
              </el-col>
            </el-row>
            <el-row class="table-row" v-for="(item, i) in recover_data" :key="i">
              <el-col :span="8">
                <div class="table-row-label">{{ item.name }}</div>
              </el-col>
              <el-col :span="5">
                <div class="table-row-td red">{{ item.blackoutCount }}</div>
              </el-col>
              <el-col :span="5">
                <div class="table-row-td green">{{ item.recoverCount }}</div>
              </el-col>
              <el-col :span="5">
                <div class="table-row-td">{{ item.recoverRatio }}</div>
              </el-col>
            </el-row>
          </div>
          <div id="oneLeftPie" style="width:42%;height:340px"></div>
          <div class="legend_pie">
            <div style="margin-left:5px;">
              <span class="pie_bottom" style="background: #4FD2FD;margin-right:5px;"></span>
              <span>未派单</span>
            </div>
            <div style="margin-left:5px;">
              <span class="pie_bottom" style="background: #FFBC4B;margin-right:5px;"></span>
              <span>已派单</span>
            </div>
            <div style="margin-left:5px;">
              <span class="pie_bottom" style="background: #EEEA71;margin-right:5px;"></span>
              <span>已接收</span>
            </div>
            <div style="margin-left:5px;">
              <span class="pie_bottom" style="background: #5EE855;margin-right:5px;"></span>
              <span>已完成</span>
            </div>
          </div>
          <div class="pie_title">95598故障报修工单统计</div>
        </div>
      </div>
    </div>
    <div class="Emergency-footer">
      <div class='Emergency-footer-top'>
        <div class="Emergency-footer-top-l">重要用户表</div>
        <div class="Emergency-footer-top-r" @click="viewZyyh">更多<i class="el-icon-d-arrow-right" color="#fff"></i></div>
      </div>
      <div class="ElTable">
        <el-table stripe
          :header-cell-style="{ background: '#265CFF', color: '#fff', 'text-align': 'center', fontSize: '16', fontFamily: 'Microsoft YaHei UI' }"
          :data="importance_user_table" :style="{ color: '#fff' }"
          :cell-style="{ 'text-align': 'center', fontSize: '16' }" style="font-size: 16px" height="266px">
          <el-table-column label="序号" type="index" width="66">
          </el-table-column>
          <el-table-column prop="userName" label="客户名称" width="310">
          </el-table-column>
          <el-table-column prop="grade" label="客户等级">
          </el-table-column>
          <el-table-column prop="voltageClasses" label="电压等级">
          </el-table-column>
          <el-table-column prop="substation" label="线路所属变电站" width="160">
          </el-table-column>
          <el-table-column prop="powerState" label="是否自备电源" width="140">
            <template slot-scope="scope">
              {{ scope.row.powerState == 0 ? '否' : '是' }}
            </template>
          </el-table-column>
          <el-table-column prop="lineName" label="线路名称" width="180">
          </el-table-column>
          <el-table-column prop="business" label="行业分类">
          </el-table-column>
          <el-table-column prop="blackoutTime" label="停电时间" width="170">
          </el-table-column>
          <el-table-column prop="recoverTime" label="复电时间" width="170">
          </el-table-column>
          <el-table-column prop="powerDemand" label="用电需求" width="220">
          </el-table-column>
        </el-table>
      </div>

    </div>
    <LsdDialog :dialogConfig="zyyhDialogConfig" class="zyyh-dialog" @close="zyyhtdDialogClose">
      <div slot="dialog">
        <filterTitle @query="queryZyyh" @reset="resetZyyh" class="zyyh-dialog-query">
          <el-form slot="filter" class="form" ref="form" :model="form" inline size="small" label-width="100px">
            <el-form-item :label="item.label + '：'" v-for="(item, index) in zyyh_form" :key="index" :prop="item.id">
              <LsdForm :compData="item" :form="form" />
            </el-form-item>
          </el-form>
        </filterTitle>
        <el-table :data="importance_user_all_table" style="width: 100%" border
          :header-cell-style="{ background: '#B1C8F9', color: '#000000', border: '1px solid #ccc' }">
          <el-table-column type="index" label="序号" align="center" width="60">
          </el-table-column>
          <el-table-column prop="userName" label="客户名称" align="center">
          </el-table-column>
          <el-table-column prop="grade" label="客户等级" align="center" width="89">
          </el-table-column>
          <el-table-column prop="voltageClasses" label="电压等级" align="center" width="89">
          </el-table-column>
          <el-table-column prop="" label="是否自备电源" align="center" width="114">
            <template slot-scope="scope">
              {{ scope.row.powerState == 0 ? '否' : '是' }}
            </template>
          </el-table-column>
          <el-table-column prop="substation" label="线路所属变电站" align="center" width="160">
          </el-table-column>
          <el-table-column prop="lineName" label="线路名称" align="center" width="190">
          </el-table-column>
          <el-table-column prop="business" label="行业分类" align="center" width="90">
          </el-table-column>
          <el-table-column prop="blackoutTime" label="停电时间" align="center" width="110">
          </el-table-column>
          <el-table-column prop="recoverTime" label="复电时间" align="center" width="110">
          </el-table-column>
          <el-table-column prop="powerDemand" label="用电需求" align="center" width="134">
          </el-table-column>
        </el-table>
        <div class="pagination">
          <div style='display: inline-block; letter-spacing: 2px;margin-right:2px'>共{{ total }}条数据,共{{ calcNum(total)
          }}页
          </div>
          <el-pagination @current-change="handleCurrentChange" :current-page.sync="pageNum" :page-size="pageSize"
            layout="prev, pager, next" :total="total" background>
          </el-pagination>
        </div>
      </div>
    </LsdDialog>
  </div>
</template>
<script>
import mapContent from "./components/KhfwMap.vue";
import "@/assets/style/Emergency.less";
// import Table from "../../../components/table.vue"
// import { ElTable } from 'element-ui/types/table'
import { getIndexRecoverApi, getImpUsersApi, getImpUsersMoreApi, getPieApi } from "@/api/EmergencyDisposal/khfw.js";
import { getpublishedinfo } from "@/api/EmergencyDisposal/xymld";
import SelectOptions from "@/components/selectOptions.vue";

export default {
  name: "StatisticsPageMap",
  // components: { sjMap },
  components: { mapContent, SelectOptions },
  data() {
    return {
      typeName: "",
      tableDataDataList: [{
        khmc: "随州南都新能源科技有限公司",
        khdj: "一级",
        dydj: "10kV",
        xlssbdz: "35kV柳林变电站",
        sfzbsy: "否",
        xlmc: "10kV柳21开关红蓝线",
        xydj: "采矿业",
        tdsj: "2021-08-12 08:55:00",
        fdsj: "/",
        ydxq: "请提供临时电源"
      }, {
        khmc: "随县有色金属集团控股有限公司",
        khdj: "二级",
        dydj: "10kV",
        xlssbdz: "35kV柳林变电站",
        sfzbsy: "否",
        xlmc: "10kV柳405均柳Ⅰ回线",
        xydj: "采矿业",
        tdsj: "2021-08-12 08:54:00",
        fdsj: "/",
        ydxq: "请提供临时电源"
      }, {
        khmc: "随州长丰矿业科技有限公司",
        khdj: "一级",
        dydj: "10kV",
        xlssbdz: "35kV何店变电站",
        sfzbsy: "否",
        xlmc: "10kV古408古均Ⅰ回线",
        xydj: "采矿业",
        tdsj: "2021-08-12 08:53:00",
        fdsj: "2021-08-12 08:55:00",
        ydxq: ""
      }, {
        khmc: "随州五联煤业集团发展有限公司",
        khdj: "一级",
        dydj: "10kV",
        xlssbdz: "35kV三里岗变电站",
        sfzbsy: "否",
        xlmc: "10kV古69古柳Ⅰ回线",
        xydj: "采矿业",
        tdsj: "2021-08-12 08:52:00",
        fdsj: "/",
        ydxq: "请提供临时电源"
      }],
      zyyhDialogConfig: {
        title: "重要用户停电信息",
        isShow: false, // 弹窗显示隐藏
        btnList: [
        ]
      },
      zyyh_form: [
        {
          elType: "select",
          id: "grade",
          label: "客户等级",
          attrs: {
            value: "",
            size: "small",
            "collapse-tags": true
          },
          options: [
            {
              label: "特级",
              value: "特级"
            },
            {
              label: "一级",
              value: "一级"
            },
            {
              label: "二级",
              value: "二级"
            },
            {
              label: "三级",
              value: "三级"
            }
          ]
        },
        {
          elType: "input",
          id: "lineName",
          label: "客户名称",
          attrs: {
            value: "",
            size: "small",
            "collapse-tags": true
          }
        }
      ],
      form: {
        lineName: "",
        grade: ""
      },
      total: 0,
      pageNum: 1,
      pageSize: 10,
      responseId: "",
      response_options: [],
      recover_data: [],
      importance_user_table: [],
      importance_user_all_table: [],
      wpd: 0, // 未派单
      ypd: 0, // 已派单
      yjs: 0, // 已接收
      ywc: 0, // 已完成
      pieTotal: 0
    };
  },
  created() {
    // this.getAllResponse();
  },
  mounted() {
    // this.oneLeftPie();// 饼图
    this.getAllResponse();

  },
  methods: {
    childData(param) {
      if (param) {
        this.typeName = param[0].name;
      }
    },
    oneLeftPie() {
      this.$Highcharts.chart("oneLeftPie", {
        chart: {
          type: "pie",
          backgroundColor: "rgba(0,0,0,0)",
          options3d: {
            enabled: true,
            alpha: 45,
            beta: 0
          }
        },
        // title: {
        //   text: "95598故障报修工单统计",
        //   style: {
        //     color: "#fff",
        //     fontSize: "18px"
        //   },
        //   y: 30
        // },
        subtitle: {
          // text: '累计报修工单:1298',
          text: `<div><span style="font-size:13px;color:#fff">累计报修工单:</span><span style="font-size:20px;color:#EE7A28">${this.pieTotal}</span></div>`,
          style: {
            color: "#fff"
          },
          y: 50
        },
        credits: {
          enabled: false
        },
        tooltip: {
          formatter() {
            return `<div><span style="font-size: 14px;color:${this.point.color}">●</span><span style="font-size: 14px;color:#fff">${this.point.name}:</span><span style="color:#fff;font-size: 14px" >${this.point.y}</span></div>`;
          },
          backgroundColor: "rgba(22,66,120)",
          style: {
            color: "#fff",
            fontSize: "14px"
          }
        },
        plotOptions: {
          pie: {
            allowPointSelect: false,
            cursor: "pointer",
            depth: 45,
            dataLabels: {
              enabled: false,
              distance: 10,
              formatter: function () {
                return `<div><span style="font-size:15px;color:${this.point.color}">${this.point.name}</span><br/><span style="font-size:14px;color:${this.point.color}">${this.point.y}</span></div>`;
              }
            },
            states: {
              inactive: {
                opacity: 1
              }
            },
            showInLegend: false
          }
        },
        colors: ["#4FD2FD", "#FFBC4B", "#EEEA71", "#5EE855"],
        series: [{
          size: "90%",
          innerSize: "60%",
          type: "pie",
          data: [
            ["未派单", this.wpd],
            ["已派单", this.ypd],
            ["已接收", this.yjs],
            ["已完成", this.ywc]
          ]
        }]
      });
      //  获取数据
      // const option = {
      //   title: [
      //     {
      //       itemGap: 10,
      //       text: `{ name| 95598故障报修工单统计}`,
      //       top: "4%",
      //       left: "center",
      //       padding: 3,
      //       textStyle: {
      //         rich: {
      //           name: {
      //             fontSize: 22,
      //             color: "#fff",
      //             fontWeight: "bold"
      //           }
      //         }
      //       },
      //       subtext: [`{ sum | 累计报修工单： } `, `{ value | 1298; }`],
      //       subtextStyle: {
      //         rich: {
      //           sum: {
      //             fontSize: 18,
      //             color: "#fff"
      //           },
      //           value: {
      //             fontSize: 26,
      //             color: "#FF7F24",
      //             fontWeight: 600
      //           }
      //         }
      //       }
      //     }],
      //   legend: {
      //     top: "90%",
      //     left: "13%",
      //     itemGap: 30,
      //     itemWidth: 13,
      //     itemHeight: 13,
      //     textStyle: {
      //       color: "#fff",
      //       fontSize: 16
      //     }
      //   },
      //   tooltip: {
      //     trigger: "item"
      //   },
      //   color: ["#4FD2FD", "#FFBC4B", "#EEEA71", "#5EE855"],

      //   series: [
      //     {
      //       // name: 'Access From',
      //       type: "pie",
      //       radius: "68%",
      //       top: "10%",
      //       data: [
      //         {
      //           value: 194, name: "未派单", label: {
      //             color: "#333"
      //           }
      //         },
      //         {
      //           value: 471, name: "已派单", label: {
      //             color: "#333"
      //           }
      //         },
      //         {
      //           value: 238, name: "已接收", label: {
      //             color: "#333"
      //           }
      //         },
      //         {
      //           value: 395, name: "已完成", label: {
      //             color: "#333"
      //           }
      //         }
      //       ],
      //       label: {
      //         normal: {
      //           show: true,
      //           position: "inner",
      //           formatter: "{c}", // 数值类型
      //           fontSize: 16
      //         }
      //       },
      //       emphasis: {
      //         itemStyle: {
      //           shadowBlur: 10,
      //           shadowOffsetX: 0,
      //           shadowColor: "rgba(0, 0, 0, 0.5)"
      //         }
      //       }
      //     }
      //   ]
      // };
      // // var total = 0
      // // for(var i=0; i< option.series[0].data.length; i++){
      // //   total += option.series[0].data[i].value
      // // }
      // // console.log(total)

      // var myChart = this.$echarts.init(document.getElementById("oneLeftPie")); // 图标初始化
      // myChart.setOption(option); // 渲染页面
      // // 随着屏幕大小调节图标
      // window.addEventListener("resize", () => {
      //   myChart.resize();
      // });
    },
    goPublishingPage() {
      this.$router.push({
        name: "PublishingPage"
      });
    },
    viewZyyh() {
      this.zyyhDialogConfig.isShow = true;
      this.getImpUsersMore();
    },
    queryZyyh() {
      this.getImpUsersMore();
    },
    resetZyyh() {
      this.form = this.$options.data().form;
      this.getImpUsersMore();
    },
    calcNum(val) {
      if (val < 10) {
        return 1;
      } else {
        return Math.ceil(val / 10);
      }
    },
    handleCurrentChange(val) {
      this.pageNum = val;
      this.getImpUsersMore();
    },
    // 获取已发布的响应命令单
    getAllResponse() {
      getpublishedinfo({}).then(res => {
        this.response_options = res.map(item => {
          return {
            label: item.responseName,
            value: item.id,
            ...item
          };
        });
        if (this.response_options.length) {
          const { value } = this.response_options[0];
          this.responseId = value;
          this.getIndexRecover(value);
          this.getImpUsers(value);
          this.getPie(value);
        }
      });
    },
    changeResponse(val) {
      this.getIndexRecover(val);
      this.getImpUsers(val);
      this.getPie(val);
    },
    // 恢复率统计
    async getIndexRecover(responseId) {
      try {
        const res = await getIndexRecoverApi({ responseId });
        // 判断当前响应命令单是否是第一个，如果是第一个就用假数据，否则用接口数据
        this.recover_data = res;
      } catch (error) {
        console.log(error);
      }
    },
    async getImpUsers(responseId) {
      try {
        const res = await getImpUsersApi({ responseId });
        // 判断当前响应命令单是否是第一个，如果是第一个就用假数据，否则用接口数据
        this.importance_user_table = res;

      } catch (error) {
        console.log(error);

      }
    },
    // 首页更多重要用户
    async getImpUsersMore() {
      try {
        const res = await getImpUsersMoreApi({ pageNum: this.pageNum, pageSize: this.pageSize, lineName: this.form.lineName, grade: this.form.grade });
        this.importance_user_all_table = res.data;
        this.total = res.total;
      } catch (error) {
        console.log(error);
      }
    },
    zyyhtdDialogClose() {
      this.zyyhDialogConfig.isShow = false;
    },
    getPie(responseId) {
      getPieApi({ responseId }).then(res => {
        // 判断当前响应命令单是否是第一个，如果是第一个就用假数据，否则用接口数据
        this.wpd = res && res.wpd ? res.wpd : 0;
        this.ypd = res && res.ypd ? res.ypd : 0;
        this.yjs = res && res.yjs ? res.yjs : 0;
        this.ywc = res && res.ywc ? res.ywc : 0;
        this.pieTotal = this.wpd + this.ypd + this.yjs + this.ywc;
        this.oneLeftPie();
      });
    }

  }
};
</script>
<style scoped lang="less">
:deep(.zyyh-dialog) {
  .el-dialog {
    width: 80vw !important;
  }

  .pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 10px;
  }

  .el-table th.el-table__cell>.cell {
    padding-left: 0;
    padding-right: 0;
  }
}

.zyyh-dialog-query {
  min-height: 100px !important;
}

.Emergency {
  height: 93%;
  // padding: 0px 20px;
  margin: 0;

  :deep(.el-breadcrumb) {
    font-size: 16px;
    line-height: initial;
  }

  :deep(.el-breadcrumb__inner.is-link) {
    font-weight: 100;
    color: #fff;
  }

  :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner) {
    color: #3270ff;
  }

  .Emergency-center {
    width: 100%;
    height: 59%;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;

    .Emergency-dt {
      width: 39%;
      height: 100%;
      border: #22588f 1px solid;
      border-radius: 4px;
      box-sizing: border-box;
    }

    .Emergency-tb {
      width: 60%;
      height: 100%;

      // display: flex;
      // flex-direction: column;
      // justify-content: space-between;
      .Emergency-tb-bd {
        width: 100%;
        height: 40px;

        .flexBetweens {
          align-items: center;
        }

        :deep(.el-form) {
          margin-top: 10px;
        }

        :deep(.el-form-item__label) {
          font-family: PingFang SC;
          font-weight: 400;
          font-style: normal;
          color: #eeeeee;
        }

        :deep(.el-form-item__content) {
          width: 60%;
        }

        :deep(.el-input__inner) {
          background-color: transparent;
          border: #22588f 1px solid;
        }
      }

      .Emergency-tb-bt {
        display: flex;
        width: 100%;
        height: 385px;
        // height: 100%;
        border: #22588f 1px solid;
        border-radius: 4px;
        margin-top: 5px;
        box-sizing: border-box;
        position: relative;

        .pie_title {
          position: absolute;
          color: #fff;
          left: 70%;
          top: 3%;
          font-size: 18px;
          font-weight: 600;
        }

        .legend_pie {
          position: absolute;
          left: 66%;
          bottom: 11%;
          display: flex;
          font-size: 14px;

          div {
            color: #fff;
          }
        }

        .pie_bottom {
          display: inline-block;
          text-align: center;
          height: 13px;
          width: 18px;
          line-height: 10px;
          border-radius: 3px;
        }
      }

      .QkTable {
        width: 56%;
        height: 525px;
        border-collapse: collapse;
      }

      .QkTable-title {
        color: #fff;
        text-align: center;
        font-size: 20px;
        // line-height: 35px;

        td {
          height: 55px;

          div {
            height: 55px;
          }
        }
      }

      .QkTable-tt {
        color: #fff;
        text-align: right;
        font-size: 20px;
        line-height: 35px;
        padding: 0;
        width: 120px;
        height: 55px;
      }

      // .label {
      //   width: 200px;
      //   max-width: 200px;
      //   box-sizing: border-box;
      //   // max-width: 120px;
      // }

      .QkTable-td {
        width: 98px !important;
        border: 0;

        div {
          text-align: center;
          font-size: 24px;
          // line-height: 35px;
          width: 98px;
          height: 55px;
          border: 1px solid #22588f;
          border-radius: 4px;
          padding: 5px 15px;
          color: #fff;
          font-weight: bold;
          background-color: rgba(2, 167, 240, 0.1);
          box-sizing: border-box;
        }
      }

      .red {
        color: #f59a23;
      }

      .green {
        color: #95f204;
      }
    }
  }

  .Emergency-footer {
    width: 100%;
    height: 300px;
    border: #22588f 1px solid;
    border-radius: 4px;
    margin-top: 8px;
    box-sizing: border-box;

    .Emergency-footer-top {
      height: 45px;
      display: flex;
      justify-content: space-between;
    }

    .Emergency-footer-top-l,
    .Emergency-footer-top-r {
      color: #fff;
      margin: auto 15px;
      font-size: 16px;
      cursor: pointer;
    }

    .Emergency-footer-top-l {
      font-size: 18px;
      font-weight: bold;
    }

    .ElTable {
      padding: 0 15px;
    }

    .ElTable /deep/ .el-table,
    .el-table__expanded-cell {
      background-color: transparent;
    }

    .ElTable /deep/ .el-table tr {
      background-color: transparent !important;
    }

    .ElTable /deep/ .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
      background: rgba(104, 168, 244, 0.3);
    }

    .ElTable /deep/ .el-table td {
      border-bottom: 0px solid #dfe6ec !important;
    }

    .ElTable /deep/ .el-table th {
      border-bottom: 0px solid #dfe6ec !important;
    }

    .ElTable /deep/ .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
      background-color: transparent;
    }

    .el-table::before {
      left: 0;
      bottom: 0;
      width: 100%;
      height: 0px;
    }
  }
}

// .select {
// display: flex;
// align-items: center;
// // width: 100%;
// // position: relative;
// vertical-align: middle;
// padding: 0;
// // overflow: hidden;
// border: none;
// opacity: 0.9;
// box-shadow: 1px 1px 10px 2px rgb(54, 175, 255) inset;
// border-radius: 4px;
// background: rgba(46, 88, 219, 0.5);
// text-shadow: none;
// transition: box-shadow 0.25s ease;
// z-index: 2;

// :deep(.el-input__inner) {
//   font-size: 18px;
//   font-weight: 700;
//   color: #fff;
// }

// :deep(.el-select .el-input .el-select__caret) {
//   color: #fff;
// }
// }
:deep(.select-class .el-select) {
  width: 100%;
  border: none;
  box-shadow: 1px 1px 10px 2px rgb(54, 175, 255) inset;
  border-radius: 4px;
  background: rgba(46, 88, 219, 0.5);
  text-shadow: none;
  transition: box-shadow 0.25s ease;

  .el-input .el-input__inner {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    font-weight: 700;
  }
}

.select select {
  cursor: pointer;
  color: rgb(255, 255, 255);
  padding: 4px 10px;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  background-image: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 18px;
  font-weight: 700;

  option {
    padding-top: 15px;
    padding-bottom: 15px;
    background: rgba(46, 88, 219, 0.5);
    color: #fff;
    font-size: 16px;
  }
}

// .select select:focus {
//   outline: none;
// }

.table-tj {
  color: #fff;
  font-size: 18px;
  width: 59%;
  // height: 400px;

  .table-title {
    .title {
      display: inline-block;
      // width: 98px;
      width: 100%;
      height: 60px;
      line-height: 60px;
      text-align: center;
    }

    .el-col:first-child {
      .title {
        width: 100%;
      }
    }
  }

  .table-row {
    &:not(:last-child) {
      margin-bottom: 20px;
    }

    div {
      display: inline-block;
    }

    .el-col {
      text-align: center;
    }

    .table-row-label {
      width: 100%;
      height: 45px;
      line-height: 45px;
      text-align: right;
    }

    .table-row-td {
      text-align: center;
      font-size: 22px;
      width: 98px;
      height: 45px;
      line-height: 45px;
      border: 1px solid #22588f;
      border-radius: 4px;
      // padding: 5px 15px;
      color: #fff;
      font-weight: bold;
      background-color: rgba(2, 167, 240, 0.1);
      box-sizing: border-box;
    }

    .red {
      color: #f59a23;
    }

    .green {
      color: #95f204;
    }
  }
}

:deep(.leftTopBtn) {
  height: 0px !important;
}
</style>

